<?php 
class ControllerDaohangDaohang extends Controller {
	public function yijing() {  
		$this->language->load('daohang/daohang');

		//$this->load->model('daohang/daohang');
		
		
		$this->data['jieshao'] = $this->url->link('message/article','code='.CODE_ENUM::YIJINGJIANJIE,'SSL');
		$this->data['jiaru'] = $this->url->link('message/article','code='.CODE_ENUM::JIARUYIJING,'SSL');
		$this->data['jianyin'] = $this->url->link('message/activity/activity_list','','SSL');
		
		
		if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/daohang/yijing.tpl')) {
			$this->template = $this->config->get('config_template') . '/template/daohang/yijing.tpl';
		} else {
			$this->template = 'default/template/daohang/yijing.tpl';
		}
	
		$this->children = array(
			'common/column_left',
			'common/column_right',
			'common/content_top',
			'common/content_bottom',
			'common/footer',
			'common/header'
		);

		$this->response->setOutput($this->render());
	}
	
	public function zoujin() {  
		$this->language->load('daohang/daohang');
		$this->data['jieshao'] = $this->url->link('message/company','','SSL');
		$this->data['youxiu_police'] = $this->url->link('message/super_police/all','','SSL');
		$this->data['shequ_police'] = $this->url->link('message/police/all','','SSL');
		$this->data['xieguan_police'] = $this->url->link('message/auxiliary_police/all','','SSL');
		$this->data['ethos'] = $this->url->link('message/ethos/all','','SSL');
		
		if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/daohang/zoujin.tpl')) {
			$this->template = $this->config->get('config_template') . '/template/daohang/zoujin.tpl';
		} else {
			$this->template = 'default/template/daohang/zoujin.tpl';
		}
	
		$this->children = array(
			'common/column_left',
			'common/column_right',
			'common/content_top',
			'common/content_bottom',
			'common/footer',
			'common/header'
		);

		$this->response->setOutput($this->render());
	}
	
	
	public function jiaru(){
		$this->language->load('daohang/daohang');
		$this->data['zhuce'] = $this->url->link('account/register','','SSL');
		$this->data['jingwu'] = $this->url->link('message/assistant_police/all','','SSL');
		$this->data['yijingduiyuan'] = $this->url->link('message/vigilante_police/all','','SSL');
		
		if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/daohang/jiaru.tpl')) {
			$this->template = $this->config->get('config_template') . '/template/daohang/jiaru.tpl';
		} else {
			$this->template = 'default/template/daohang/jiaru.tpl';
		}
	
		$this->children = array(
			'common/column_left',
			'common/column_right',
			'common/content_top',
			'common/content_bottom',
			'common/footer',
			'common/header'
		);
		$this->response->setOutput($this->render());
	}
	
	
	public function daohang(){
		
		if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/daohang/daohang.tpl')) {
			$this->template = $this->config->get('config_template') . '/template/daohang/daohang.tpl';
		} else {
			$this->template = 'default/template/daohang/daohang.tpl';
		}
	
		$this->children = array(
			'common/column_left',
			'common/column_right',
			'common/content_top',
			'common/content_bottom',
			'common/footer',
			'common/header'
		);
		$this->response->setOutput($this->render());
		
	}

	
}
?>